package org.example.myleet.p1305;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[0,1,1,2,3,4]".equals(JsonUtils.toJson(solution.getAllElements(Parser.parse(new Integer[]{2,1,4}), Parser.parse(new Integer[]{1,0,3})))));
        Assert.isTrue("[1,1,8,8]".equals(JsonUtils.toJson(solution.getAllElements(Parser.parse(new Integer[]{1,null,8}), Parser.parse(new Integer[]{8,1})))));
        Assert.isTrue("[0,1,2,5,7]".equals(JsonUtils.toJson(solution.getAllElements(Parser.parse(new Integer[]{}), Parser.parse(new Integer[]{5,1,7,0,2})))));
    }
}
